{% extends 'layout.html' %} {% block content %}
<div class="card-body">
  <p style="font-family: 华文仿宋; font-size: 15px; font-weight: 600">
    编辑业务
  </p>
  <div>
    <form action="" method="post">
      {% csrf_token %}
      <input
        class="form-control"
        type="text"
        name="name"
        value="{{ BusinessInfo.name }}"
        placeholder="BusinessInfo Name ..."
        aria-label="default input example"
        style="
          font-family: 'Tw Cen MT', 华文仿宋;
          width: 700px;
          font-size: 14px;
        "
      />
      <input
        class="form-control"
        type="text"
        name="time"
        value="{{ BusinessInfo.create_time|date:"Y-m-d" }}"
        placeholder="BusinessInfo Onboarding Time ..."
        aria-label="default input example"
        style="
          font-family: 'Tw Cen MT', 华文仿宋;
          width: 700px;
          font-size: 14px;
          margin-top: 20px;
        "
      />
      <input
        class="form-control"
        type="text"
        name="price"
        value="{{ BusinessInfo.price }}"
        placeholder="BusinessInfo Price ..."
        aria-label="default input example"
        style="
          font-family: 'Tw Cen MT', 华文仿宋;
          width: 700px;
          font-size: 14px;
          margin-top: 20px;
        "
      />
      <input
        class="form-control"
        type="text"
        name="customer"
        value="{{ BusinessInfo.customer }}"
        placeholder="BusinessInfo Customer ..."
        aria-label="default input example"
        style="
          font-family: 'Tw Cen MT', 华文仿宋;
          width: 700px;
          font-size: 14px;
          margin-top: 20px;
        "
      />
      <input
        class="form-control"
        type="text"
        name="phone"
        value="{{ BusinessInfo.phone }}"
        placeholder="BusinessInfo Phone ..."
        aria-label="default input example"
        style="
          font-family: 'Tw Cen MT', 华文仿宋;
          width: 700px;
          font-size: 14px;
          margin-top: 20px;
        "
      />
      <select
        class="form-select"
        aria-label="Default select example"
        name="level"
        style="
          width: 700px;
          font-family: 'Tw Cen MT', 华文仿宋;
          font-weight: 600;
          font-size: 14px;
          margin-top: 20px;
        "
      >
          <option value="{{ BusinessInfo.level }}">{{ BusinessInfo.get_level_display }}</option>
        <option value="1">普通</option>
        <option value="2">重要</option>
        <option value="3">紧急</option>
      </select>
      <select
        class="form-select"
        aria-label="Default select example"
        name="status"
        style="
          width: 700px;
          font-family: 'Tw Cen MT', 华文仿宋;
          font-weight: 600;
          font-size: 14px;
          margin-top: 20px;
        "
      >
           <option value="{{ BusinessInfo.status }}">{{ BusinessInfo.get_status_display }}</option>
        <option value="1">未开始</option>
        <option value="2">进行中</option>
        <option value="3">已完成</option>
      </select>
      <button
        type="submit"
        class="btn btn-primary mb-3"
        style="
          margin-top: 20px;
          width: 70px;
          height: 32px;
          font-size: 13px;
          font-family: 华文宋体;
        "
      >
        保存
      </button>
    </form>
  </div>
</div>
{% endblock %}